package com.ihr360.rest.service.fallback;

import com.ihr360.commons.entity.AuthUserInfo;
import com.ihr360.oneclick.modal.OneClickStaff;
import com.ihr360.oneclick.modal.SendMessage;
import com.ihr360.oneclick.modal.SendMessageResponse;
import com.ihr360.rest.service.IrenshiDubboProviderService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Component
public class IrenshiDubboProviderServiceFallback implements IrenshiDubboProviderService {

    @Override
    public Map<String, String> getAppUserRecordServiceId(@RequestBody List<OneClickStaff> oneClickStaffList) {
        return new HashMap<>();
    }

    @Override
    public String getCompanyName(@RequestParam(value = "companyId") String companyId) {
        return null;
    }

    @Override
    public boolean balanceSufficient(@RequestParam(value = "companyId") String companyId,
                                     @RequestParam(value = "smsCount") int smsCount) {
        return false;
    }

    @Override
    public SendMessageResponse sendSms(@RequestBody Set<SendMessage> sendMessages,
                                       @RequestParam(value = "companyId") String companyId,
                                       @RequestParam(value = "userId") String userId,
                                       @RequestParam(value = "withoutCharge") boolean withoutCharge) {
        return null;
    }

    @Override
    public boolean checkCompanyPassword(@RequestBody AuthUserInfo authUserInfo, @RequestParam(value = "password") String password) {
        return false;
    }

    @Override
    public Map<String, String> getAppUserRecordProgramId(List<OneClickStaff> oneClickStaffList) {
        return new HashMap<>();
    }

}